//
//  HRDynamicCell.h
//  Hear
//
//  Created by mac on 2017/3/26.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "HRBaseTableViewCell.h"
//#import "MyPlayTool.h"
#import "HRSoundExampleModel.h"
#import "HRDynamicSoundAndImageBackGroundView.h"
#import "HRFollowDynamicPhotoView.h"
#import "HRFunChatModel.h"
@class HRDunamicLayout,HRDynamicModel,HRDynamicCommentModel;

@interface HRDynamicContentBottomView: UIView
@property (nonatomic, strong)HRDunamicLayout *layout;
@property(nonatomic, strong)UILabel *lineLabel;
@property(nonatomic, strong)UIImageView *timeImageView;
@property(nonatomic, strong)UILabel *timeLabel;
@property(nonatomic, strong)UIButton *addressButton;

@end

@interface HRDynamicTimeView: UIView
@property(nonatomic, strong)UIImageView *timeImageView;
@property(nonatomic, strong)UILabel *timeLabel;
@property (nonatomic, strong)HRDunamicLayout *layout;

@end

@interface HRSoundButton: UIButton
@property (nonatomic, strong)UIImageView *leftImageView;

@property (nonatomic, strong)UIImageView *voiceImageView;
@property (nonatomic, strong)UILabel *voiceTimeLabel;
@property (nonatomic, strong)HRDynamicModel *dynamicModel;
@property (nonatomic, copy)NSString *soundUrl;
@property (nonatomic, strong)void(^playMedioBlock)(HRDynamicModel *currentDynamicModel);
@property (nonatomic, strong)HRSoundExampleModel *exampleModel;
@property (nonatomic, strong)void(^playExampleMedioBlock)(HRSoundExampleModel *currentExampleModel);
@property (nonatomic, assign)BOOL isPlaying;
@property (nonatomic, strong)HRDynamicCommentModel *commentModel;
@property (nonatomic, strong)void(^playCommentMedioBlock)(HRDynamicCommentModel *commentModel);
@property(nonatomic, strong)HRFunChatModel *funChatModel;
@property (nonatomic, strong)void(^playFunChatMedioBlock)(HRFunChatModel *funChatModel);

@end

@interface VBContentView: UIView

@property(nonatomic, strong)UIImageView *lockImageView;

@property (nonatomic, strong)YYLabel *contentLabel;
@property (nonatomic, strong)HRSoundButton *soundButton;
@property(nonatomic, strong)HRDynamicSoundAndImageBackGroundView *soundAndImageView;
@property(nonatomic, strong)HRFollowDynamicPhotoView *photoView;
@property(nonatomic, strong)HRDynamicContentBottomView *bottomView;

@property (nonatomic, strong)HRDunamicLayout *layout;
@property (nonatomic, strong)void(^playMedioBlock)(HRDynamicModel *currentDynamicModel);


//@property (nonatomic, strong)UIView *contentView;
//
//@property (nonatomic, strong)UIImageView *lockImageView;
//
//@property (nonatomic, strong)UILabel *lineLabel;
//@property (nonatomic, strong)UIImageView *cirleLabel;
//@property (nonatomic, strong)UIImageView *backImageView;
//@property (nonatomic, strong)UILabel *timeLabel;
//@property (nonatomic, strong)UILabel *remendLabel;
//
//@property (nonatomic, strong) NSArray<UIView *> *picViews;      // 图片

@end





@interface HRDynamicCell : HRBaseTableViewCell
+(instancetype)cellWithTableView:(UITableView *)tableView;

@property (nonatomic, strong)VBContentView *contenView;
@property (nonatomic, strong)HRDunamicLayout *layout;
@property (nonatomic, strong)void(^playMedioBlock)(HRDynamicModel *currentDynamicModel);
@property(nonatomic, strong)HRDynamicTimeView *timeView;
@property (nonatomic, strong)void(^deleteHistoryAnswerBlock)();

@property (nonatomic, strong) UIButton *deleteButton;
@end

